import { uniRequset } from '@/utils/request'
import type { ResponeseType } from '@/types/ResponseTtpe'
import type { HotRecommenditemType, ProductType } from '@/types/home'
export const getHotdetailApi = (HotRecommendId: number) => {
  return uniRequset<HotRecommenditemType<ProductType>[]>({
    url: `/goods/get_hot_detail/${HotRecommendId}`,
    method: 'GET',
  })
}
// 获取推荐商品列表，需要传入推荐对象id
export const getHotProductListApi = (HotRecommendId: number, page?: number) => {
  return uniRequset<ProductType[]>({
    url: `/goods/get_hot_detail_products/${HotRecommendId}`,
    method: 'GET',
    data: { page: page },
  })
}
